package com.elvis.springaopinaction.config;

/**
 * 奶茶基础类
 */
public class MilkTea {
    public void makeMilkTea(){
        System.out.print("原味奶茶");
    }
}


/**
 * 加珍珠奶茶
 */

class PearlMilkTea extends MilkTea{

    @Override
    public void makeMilkTea(){
        super.makeMilkTea();
        System.out.println("  + 加珍珠");
    }

}


/**
 * 加椰奶奶茶
 */

class CreamMilkTea extends MilkTea{

    @Override
    public void makeMilkTea(){
        super.makeMilkTea();
        System.out.println("  + 加椰奶");
    }

}


/**
 * 加红豆奶茶
 */

class RedBeanMilkTea extends MilkTea{

    @Override
    public void makeMilkTea(){
        super.makeMilkTea();
        System.out.println("  + 加红豆");
    }

}